FROM mdsol/java21-jdk:2025.6.16023914
# 作者
MAINTAINER kevin
# 解决时差8小时问题
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

#jar
COPY target/ruoyi-admin.jar /app.jar

ENTRYPOINT ["java","-jar","-Dspring.profiles.active=${PROFILES_ACTIVE}","/app.jar"]
